package model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author gubengang
 * @create 2021-09-30 19:27
 */
public class Host {
    private Integer hostId;
    private List<Core> cores = new ArrayList<Core>(20);;
    private Map<Integer, List<Integer>> jobCoreMap = new HashMap<>();

    public Host(Integer hostId){
        this.hostId = hostId;
        for(int i=0; i<20; i++){
            cores.add(new Core(i));
        }
    }

    public Integer getHostId() {
        return hostId;
    }

    public void setHostId(Integer hostId) {
        this.hostId = hostId;
    }

    public List<Core> getCores() {
        return cores;
    }

    public void setCores(List<Core> cores) {
        this.cores = cores;
    }

    public Map<Integer, List<Integer>> getJobCoreMap() {
        return jobCoreMap;
    }

    public void setJobCoreMap(Map<Integer, List<Integer>> jobCoreMap) {
        this.jobCoreMap = jobCoreMap;
    }
}
